package cn.luischen.aspect;

import java.util.Arrays;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import cn.luischen.service.log.LogService;

import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.junit.Rule;
import org.junit.runner.RunWith;
import org.junit.rules.ExpectedException;
import org.junit.Test;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;
import java.lang.reflect.Method;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.fastjson.parser.ParserConfig;
import java.util.Map;
import java.util.List;
import com.unitspirit.runtime.*;
/**
 * The class contains tests for the class cn.luischen.aspect.WebLogAspect.
*
* @generatedBy UnitSpirit CreateTemplateTestFile4
* @version 1.0.9.11 
*/
@PowerMockIgnore({"javax.management.*"})
public class WebLogAspect_doAfterReturning_WGTest {
  @Rule  
  public ExpectedException unitspirit_thrown= ExpectedException.none();
  /**
  * 测试方法初始化.
  * 
  * @throws Exception 
  *         if the initialization fails for some reason 
  *  
  * @generatedBy UnitSpirit at 2021-12-08 11:01:03
  */  
 @org.junit.Before 
  public void setUp()  throws Exception 
  { 
    try{
    GlobalUnitInit.init(); 
    MockitoAnnotations.initMocks(this);
   ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
}catch(Exception ex){
  ex.printStackTrace();
}
  }

  
@InjectMocks 
cn.luischen.aspect.WebLogAspect unitspirit_fixture;

@Mock 
cn.luischen.service.log.LogService mock_LogService;

  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1001_002747_438_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/article_edit";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1001_002825_896_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/category";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1001_002845_533_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/attach";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1001_002851_727_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/setting";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1125_152220_691_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "{\"code\":\"success\"}";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_112008_625_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "{\"code\":\"success\"}";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_112008_999_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/index";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_113823_798_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/profile";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_113840_796_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/article_edit";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_113854_702_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "site/blog-details";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_113923_121_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "site/index";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_114039_532_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/category";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:03
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_114107_358_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/attach";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:04
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_1207_114145_590_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = null;
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:04
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_20210609_175412_119_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/login";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:04
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_20210609_175416_472_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "{\"code\":\"success\"}";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:04
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_20211109_110223_933_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "site/index";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:04
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_20211109_110315_768_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "admin/login";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:04
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_20211109_110317_805_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "{\"msg\":\"\",\"code\":\"fail\"}";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:04
  * @see cn.luischen.aspect.WebLogAspect#doAfterReturning
  * @category null  
  * @author UnitSpirit   
  */
  @Test
  public void test_doAfterReturning_20211111_133509_608_1_01() throws Throwable {
    //被测函数参数定义
    Object Object_p_0 = "{\"msg\":\"您输入密码已经错误超过3次，请10分钟后尝试\",\"code\":\"fail\"}";
  //成员变量设置


		ThreadLocal<Long> m_un_startTime = new ThreadLocal<>();
		m_un_startTime.set(1L);
		Whitebox.setInternalState(unitspirit_fixture, "startTime",m_un_startTime);
    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.doAfterReturning(Object_p_0);
    assertTrue(true);
  }
}